package com.cavy.platform.client.message;

import com.cavy.platform.client.domain.RunningParameter;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by tangxu on 18-7-30.
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class StageExecutedSuccessMessage extends Message {
    protected String number;
    protected String pipelineName;
    protected String projectName;
    protected String workspaceName;
    protected String stageName;

    public StageExecutedSuccessMessage() {
    }

    public StageExecutedSuccessMessage(RunningParameter parameter) {
        this.number = parameter.getNumber();
        this.pipelineName = parameter.getPipelineName();
        this.projectName = parameter.getProjectName();
        this.workspaceName = parameter.getWorkspaceName();
        this.stageName = parameter.getStageName();
    }
}
